﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.MODEL.Monitor;
namespace MINERP.BLL.Monitor
{
    public class MonitorBLL
    {
        //参数
        private DAL.Monitor.MonitorDAL dal = new MINERP.DAL.Monitor.MonitorDAL();
        /// <summary>
        /// 监控的总体信息
        /// </summary>
        /// <param name="start"></param>
        /// <param name="end"></param>
        /// <param name="priority"></param>
        /// <returns></returns>
        public List<MODEL.Monitor.MonitorInfo> GetMonitorInfo(DateTime start,DateTime end, int priority)
        {
            try
            {
                return dal.GetMonitorInfo(start,end, priority);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public double GetNoCompletedArea()
        {
            return dal.GetNoCompletedArea();
        }

        public int GetNoCompletedProductNum()
        {
            return dal.GetNoCompletedProductNum();
        }
        public int GetNoCompletedProductNumPriority(int priority)
        {
            return dal.GetNoCompletedProductNumPriority(priority);
        }
        public double GetNoCompletedAreaPriority(int priority)
        {
            return dal.GetNoCompletedAreaPriority(priority);
        }
        public int GetCompletedProductNum(DateTime start,DateTime end)
        {
            return dal.GetCompletedProductNum(start, end);
        }
        public double GetCompletedArea(DateTime start, DateTime end)
        {
            return dal.GetCompletedArea(start, end);
        }
        public List<UserTaskInfo> GetUserTaskDetails(int techid, DateTime start, DateTime end, int priority)
        {
            return dal.GetUserTaskInfo(techid,start, end, priority);
        }
    }
}
